import request from '@/utils/request'
// 登录
export function login(data) {
  return request({
    url:'sys/login',
    method:'POST',
    data  
  })
}

export function getUserInfo() {
  return request({
    url: 'sys/profile',
    method: 'get'
  })
}
export function updatePassword (data){
  return request({
    url:'sys/user/updatePass',
    method:'put',
    data
  })
}